{% extends "base.html" %}
{% load i18n %}
{% load markup %}

{% block title %}{% trans "Blogs" %} - {{ weblog }} - {{ year }}{% endblock %}

{% block extrahead %}
<link rel="alternate" type="application/rss+xml" title="RSS 2.0"
      href="http://{{ site.domain }}/rss/blogs/{{ weblog.slug }}/" />
<link rel="alternate" type="application/atom+xml" title="Atom 1.0"
      href="http://{{ site.domain }}/atom/blogs/{{ weblog.slug }}/" />
{% endblock %}

{% block content %}
<h2>{% trans "Blogs" %}</h2>
<h3>{{ weblog }}</h3>
<h4>Archive for {{ year }}</h4>
{% for entry in object_list %}
<div>
  <h3><a href="{{ entry.get_absolute_url }}">{{ entry.title }}</a></h3>
  <p class="date">{{ entry.pub_date|date:"l, F jS, Y" }}</p>
  <p class="byline">{% trans "By" %}{% ifnotequal entry.user.get_full_name "" %} {{ entry.user.get_full_name }}{% else %} {{ entry.user.username }}{% endifnotequal %}</p>
  {{ entry.body|markdown|truncatewords:40 }}
  <p><a href="{{ entry.get_absolute_url }}">Read this entry</a></p>
</div>
{% endfor %}
{% endblock %}
